[Top] [Prev] [Next] [Bottom] [Contents]

SaPrintVbsScripts

A built-in data site callback function which will insert VB Script functions in a Sapphire server application at the specified data site in the HTML template.

Synopsis

#include "savbs.h"
void SaPrintVbsScripts(char* file, char* site, void* 
client);

Argument

file
A string specifying the filepath name of an HTML template file. This function ignores this parameter.
site
A string specifying the site name registered. This function ignores this parameter.
kind
Specifies which VB Script function(s) to print. Valid defined constants and the function they use to print are:
SAVBS_DATENOW - SaVbsDateFixNow()
SAVBS_DATE - SaVbsValDate()
SAVBS_DATE_FUT - SaVbsValDateFuture()
SAVBS_DATE_PAST - SaVbsValDatePast()
SAVBS_FORMAT - SaVbsSimpleFormat()
SAVBS_CREDIT - SaVbsCardCheck()
SAVBS_ZIP - SaVbsZipCheck()
SAVBS_SSN - SaVbsSsnCheck()
SAVBS_EMAIL - SaVbsValEmail()
SAVBS_STATE - SaVbsState()
SAVBS_LETTERS - SaVbsIsAllLetters()
SAVBS_DIGITS - SaVbsIsAllDigits()
SAVBS_NOBLANK - SaVbsIsFieldNotBlank()

Return Values

None.

Description

A built-in data site callback function which will insert VB Script functions in a Sapphire server application at the specified data site in the HTML template. The parameter, kind, specifies which function(s) are inserted at the site.

Example

The code fragment:

SaPrintVbsSrcipts(NULL, "VBScripts", 0);

will write a string to standard out which is equivalent to the contents of the file:

config\htmlstyle\Xvbs.vbs
in the Sapphire distribution.

See Also

SaVbsSsnCheck, SaVbsZipCheck, SaVbsCardCheck, SaVbsDateFixNow

SaVbsValDate, SaVbsValDateFuture, SaVbsValDatePast, SaVbsIsAllDigits

SaVbsIsAllLetters, SaVbsIsFieldNotBlank, SaVbsValEmail, SaVbsState

SaVbsSimpleFormat, SaRegVbsScripts



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.